package model

type Loop struct {
	Id        int    `json:"id"`
	PastureId int64  `json:"pasture_id"`
	Name      string `json:"name"`
	CreatedAt int64  `json:"created_at"`
	UpdatedAt int64  `json:"updated_at"`
}

func (l *Loop) TableName() string {
	return "d_loop"
}

func NewLoop(pastureId int64, name string) *Loop {
	return &Loop{
		PastureId: pastureId,
		Name:      name,
	}
}
